import Cookies from 'js-cookie'

//后台写入的cookie名
const TokenKey = 'David2018AuthV1'

export function getToken() {
  // return true;
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
